package com.cf.apiInstance.exception;

import com.cf.apiInstance.common.enums.ErrorCodeEnum;

/**
 * 运行时异常父类
 * 
 * @author: cf
 * @date: 29 Nov 2018 9:09:29 am
 * @vesion: 1.0
 */
public class ApiRuntimeException extends RuntimeException {

	/**
	 * @Fields serialVersionUID : TODO描述
	 */
	private static final long serialVersionUID = 6426427695955228949L;

	private ErrorCodeEnum exceptionEnums;

	public ApiRuntimeException(ErrorCodeEnum exceptionEnums, Throwable cause) {
		super(exceptionEnums.getMsg(), cause);
		this.exceptionEnums = exceptionEnums;
	}

	public ErrorCodeEnum getExceptionEnums() {
		return exceptionEnums;
	}

	public void setExceptionEnums(ErrorCodeEnum exceptionEnums) {
		this.exceptionEnums = exceptionEnums;
	}

}
